package ru.kantiana.accounting.rldata.core.rl.data;

/**
 * @author: Pavel Belevich
 * Date: 3/27/11
 * Time: 4:30 PM
 */
public class RL {

    private String number;
    private String name;
    private String text;
    private String location;

    public RL() {
    }

    public RL(String number, String name, String text) {
        this.number = number;
        this.name = name;
        this.text = text;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RL rl = (RL) o;

        if (name != null ? !name.equals(rl.name) : rl.name != null) return false;
        if (number != null ? !number.equals(rl.number) : rl.number != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = number != null ? number.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        return result;
    }
}
